removeAt

open infix override fun removeAt(index: Int): E
infix fun removeAt(index: PositiveInt): E
infix fun removeAt(index: StrictlyPositiveInt): E

Removes an element at the specified index from the list, or throws an IndexOutOfBoundsException if the index is out of bounds.

Because this list shouldn't be empty, the element will not be removed if this list contains only one element.